package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充值订单对象 yx_recharge_orders
 * 
 * @author lingyu
 * @date 2024-04-07
 */
public class YxRechargeOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 操作对应id */
    @Excel(name = "操作对应id")
    private Long optionId;

    /** 1、对应充值vip，2充值余额、 */
    @Excel(name = "1、对应充值vip，2充值余额、")
    private Long optionType;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private BigDecimal amount;

    /** 订单状态（例如：待支付、支付成功、支付失败） */
    @Excel(name = "订单状态", readConverterExp = "例=如：待支付、支付成功、支付失败")
    private Long orderStatus;

    /** 支付方式（1支付宝、2微信、3银行卡） */
    @Excel(name = "支付方式", readConverterExp = "1=支付宝、2微信、3银行卡")
    private String payMethon;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 支付时间（如果已支付） */
    @Excel(name = "支付时间", readConverterExp = "如=果已支付")
    private Date paidAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setOptionType(Long optionType) 
    {
        this.optionType = optionType;
    }

    public Long getOptionType() 
    {
        return optionType;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }
    public void setPayMethon(String payMethon) 
    {
        this.payMethon = payMethon;
    }

    public String getPayMethon() 
    {
        return payMethon;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setPaidAt(Date paidAt) 
    {
        this.paidAt = paidAt;
    }

    public Date getPaidAt() 
    {
        return paidAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNum", getOrderNum())
            .append("userId", getUserId())
            .append("optionId", getOptionId())
            .append("optionType", getOptionType())
            .append("amount", getAmount())
            .append("orderStatus", getOrderStatus())
            .append("payMethon", getPayMethon())
            .append("createdAt", getCreatedAt())
            .append("paidAt", getPaidAt())
            .append("remark", getRemark())
            .toString();
    }
}
